debian/rules: Enable LTO
authorGunnar Hjalmarsson <gunnarhj@debian.org>
Sat, 23 Jul 2022 15:21:24 +0000 (17:21 +0200)
committerGunnar Hjalmarsson <gunnarhj@debian.org>
Sat, 23 Jul 2022 15:21:24 +0000 (17:21 +0200)
debian/changelog
debian/rules

index 659c03c3674f68e15969d0bc3a3a54e967f91397..5c1899e6702bc9295a01f25fd7bf3a0255fe5580 100644 (file)
@@ -1,3 +1,10 @@
+opencc (1.1.4+ds1-2) UNRELEASED; urgency=medium
+
+  * Start fixing FTBFS with LTO enabled (see bug 1015565):
+    - debian/rules: Enable LTO
+
+ -- Gunnar Hjalmarsson <gunnarhj@debian.org>  Sat, 23 Jul 2022 17:13:10 +0200
+
 opencc (1.1.4+ds1-1) unstable; urgency=medium
 
   [ xiao sheng wen ]
index 2fef24c850ca651a8768f361ec5a819928f955f2..949892e40d7f0abc2245b411c94460d2ff49924d 100755 (executable)
@@ -4,7 +4,7 @@
 # export DH_VERBOSE=1
 
 # see FEATURE AREAS in dpkg-buildflags(1)
-export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all optimize=+lto
 
 include /usr/share/dpkg/architecture.mk